package com.recource.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.recource.constant.StaticConstant;
import lombok.Data;

import java.util.Date;

/**
 * @author yujie
 * @createTime 2023/3/7 20:36
 * @description
 */
@TableName("t_diaocha")
@Data
public class diaocha {

    @TableId(type = IdType.ASSIGN_UUID)
    private String id;

    private String message;

    private String mid;

    @TableField(exist = false)
    private Major major;

    private String gid;

    @TableField(exist = false)
    private Grade grade;

    private String bjId;

    @TableField(exist = false)
    private Bj bj;

    @JsonFormat(pattern = StaticConstant.DATE_FORMAT)
    private Date date = new Date();
}
